comment "tvheadend needs a toolchain with LARGEFILE, IPv6 and THREADS support"
    depends on !BR2_LARGEFILE || !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS

config BR2_PACKAGE_TVHEADEND
	bool "tvheadend"
	depends on BR2_LARGEFILE && BR2_INET_IPV6
	depends on BR2_TOOLCHAIN_HAS_THREADS
	# tvheadend requires an atomic_add operation. Either you have
	# a gcc >= 4.3 toolchain and it uses the gcc intrinsics, or it
	# has special code for x86, x86-64, PPC and ARM. So in the
	# context of Buildroot, the only really problematic
	# architecture is avr32, which uses gcc 4.2.
	depends on !BR2_avr32
	select BR2_PACKAGE_DVB_APPS
	select BR2_PACKAGE_OPENSSL
	help
	  Tvheadend is a TV streaming server for Linux supporting DVB-S,
	  DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as
	  input sources.

	  https://www.lonelycoder.com/redmine/projects/tvheadend/

	  Note:
	    - a default user has been created to log in the web configuration
	      GUI: admin/admin; you can change it at your discretion at runtime.
	    - if you want Avahi support, you'll need to enable:
	          Avahi, D-Bus, libdaemon
